package cn.tedu.hospitalgroupproject.server.content.dao.persist.repository.impl;

import cn.tedu.hospitalgroupproject.server.content.dao.persist.mapper.HealthyReportMapper;
import cn.tedu.hospitalgroupproject.server.content.dao.persist.repository.IHealthyReportRepository;
import cn.tedu.hospitalgroupproject.server.content.pojo.entity.HealthyReport;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Slf4j
@Repository
public class HealthyReportRepositoryImpl implements IHealthyReportRepository {

    @Autowired
    private HealthyReportMapper healthyReportMapper;

    public HealthyReportRepositoryImpl() {
        log.info("创建数据库对象:HealthyReportRepositoryImpl");
    }

    @Override
    public int insert(HealthyReport healthyReport) {
        log.debug("开始向[健康报告表]中插入数据:{}",healthyReport);
        return healthyReportMapper.insert(healthyReport);
    }
}
